<%@ page isELIgnored="false" %>
<%@ page contentType="text/html" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

  <title>EM Live Ranking</title>

  <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"/>
  <meta name="author" content="Rudolf Traunmüller"/>
  <meta name="description" content="Swingolf Live Ergebnisse"/>
  <meta name="keywords" content="swingolf linz live ranking"/>
  <meta name="robots" content="index, follow, noarchive"/>
  <meta name="googlebot" content="noarchive"/>
  <meta http-equiv="refresh" content="60">

  <link rel="stylesheet" type="text/css" media="screen" href="css/screen.css"/>
</head>
<body>
<!--header -->
<div id="header">
  <h4>${date}</h4>
  <%--<h1 id="logo-text"><a href="index.html" title="">EM 2011</a></h1>--%>

  <%--<div id="header-image"></div>--%>

  <!--header ends-->
</div>
<div align="center">
  <table text-align="center">
    <tr>
      <c:if test="${fn:length(ranks5) gt 0}">
        <td align="center" valign="top"><h3><img
            src="showImage.html?id=${ranks5[0].player.imageId}&type=liverank&dimension=210"/></h3>
          <c:forEach var="rank" items="${ranks5}">
            <h4>
              <c:if test="${not empty rank.player.team}"><img
                  src="showImage.html?id=${rank.player.team.countryImageId}&type=liverank&dimension=25"/></c:if>
              <c:out value="${rank.rank}"/>. <c:out value="${rank.player.name}"/> (<c:out
                value="${rank.player.score}"/>)<br/>
            </h4>
          </c:forEach>
        </td>
      </c:if>
      <c:if test="${fn:length(ranks5_15) gt 0}">
        <td valign="top">
          <c:forEach var="rank" items="${ranks5_15}">
            <h4>
              <c:if test="${not empty rank.player.team}"><img
                  src="showImage.html?id=${rank.player.team.countryImageId}&type=liverank&dimension=25"/></c:if>
              <c:out value="${rank.rank}"/>. <c:out value="${rank.player.name}"/> (<c:out
                value="${rank.player.score}"/>)<br/>
            </h4>
          </c:forEach>
        </td>
      </c:if>
      <c:if test="${fn:length(ranks15_25) gt 0}">
        <td valign="top">
          <c:forEach var="rank" items="${ranks15_25}">
            <h4>
              <c:if test="${not empty rank.player.team}"><img
                  src="showImage.html?id=${rank.player.team.countryImageId}&type=liverank&dimension=25"/></c:if>
              <c:out value="${rank.rank}"/>. <c:out value="${rank.player.name}"/> (<c:out
                value="${rank.player.score}"/>)<br/>
            </h4>
          </c:forEach>
        </td>
      </c:if>
    </tr>
  </table>
</div>

<%--<!-- featured starts -->--%>
<%--<div id="featured" class="clear">--%>

<%--<a name="TemplateInfo"></a>--%>

<%--<div class="image-block">--%>
<%--<img src="showImage.html?id=${firstRank.player.imageId}&type=liverank&dimension=230"/>--%>
<%--</div>--%>
<%--<div class="text-block">--%>
<%--<h2>EM Live Ranking: </h2>--%>

<%--<h2><c:out value="${firstRank.rank}"/>. <c:out value="${firstRank.player.name}"/></h2>--%>

<%--<h2><c:out value="${firstRank.player.score}"/> Schläge</h2>--%>
<%--</div>--%>

<%--<!-- featured ends -->--%>
<%--</div>--%>

<%--<div id="content" class="clear">--%>
<%--<h3>--%>
<%--<c:forEach var="rank" items="${ranks}">--%>
<%--<c:out value="${rank.rank}"/>. <c:out value="${rank.player.name}"/> - <c:out--%>
<%--value="${rank.player.score}"/> Schläge<br/>--%>
<%--</c:forEach>--%>
<%--</h3>--%>
<%--</div>--%>
<%--<!-- wrap ends here -->--%>
</div>
</body>
</html>
